Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632542 Views

Latest files of /cody/solygambas/html-css-javascript-projects/009-sound board

sounds/ cody/solygambas/html-css-javascript-projects/009-sound board/sounds/
6 Items
  • tada.mp3
  • applause.mp3
  • gasp.mp3
  • wrong.mp3
  • boo.mp3
  • victory.mp3
  • style.css cody/solygambas/html-css-javascript-projects/009-sound board/style.css
    157 Views
    0 Comments
    @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400&display=swap");

    * {
    box-sizing: border-box;
    }

    body {
    background-color: rgb(161, 100, 223);
    index.html cody/solygambas/html-css-javascript-projects/009-sound board/index.html
    325 Views
    0 Comments
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="style.css" />
    <title>Sound Board</title>
    </head>
    script.js cody/solygambas/html-css-javascript-projects/009-sound board/script.js
    216 Views
    0 Comments
    const sounds = ["applause", "boo", "gasp", "tada", "victory", "wrong"];
    const buttons = document.getElementById("buttons");

    const stopSounds = () => {
    sounds.forEach((sound) => {
    const currentSound = document.getElementById(sound);
    currentSound.pause();
    currentSound.currentTime = 0;